package com.example.demo.controller;


import com.example.demo.dto.R;
import com.example.demo.service.demoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Slf4j
public class demoController extends BasicController {

    @Resource
    private demoService demoService;

    //GETCNT
    @GetMapping("/cnt/sum")
    public R getAllCnt() {
        return R.success(demoService.getAllCnt());
    }

    // 重置
    @GetMapping("/cnt/clean")
    public R getClean() {
        return R.success(demoService.getClean());
    }


}
